﻿namespace Liger.Web.UI
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;


    public class GridTotalSettingsBuilder
    {
        private readonly GridTotalSettings total;
        public GridTotalSettingsBuilder(GridTotalSettings total)
        {
            this.total = total;
        }
        /// <summary>
        /// 设置 统计行(全部数据)
        /// </summary>
        public GridTotalSettingsBuilder Total(string functionName)
        {
            this.total.TotalRender = () => functionName;
            return this;
        }
        /// <summary>
        /// 设置 统计行(全部数据)
        /// </summary>
        public GridTotalSettingsBuilder Total(Func<string> function)
        {
            this.total.TotalRender = function;
            return this;
        }
         
    }
}
